﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Contact_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:Panel ID="pnlCreateMsg" Visible="true" runat="server">
    <acms:HtmlContentControlDisplay ID="Html" ControlName="Text Area 1" runat="server" />

<ul class="Contact">
    
    <li class="contactItem clearfix">
        
        <asp:Label CssClass="contactLabel" ID="lblName" AssociatedControlID="txtName" Text="Name" runat="server"/>    
            
        <span class="contactInput ">
            <asp:TextBox ID="txtName" runat="server" TextMode="SingleLine" />
        </span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="formError" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Please Check" />
    </li>

    <li class="contactItem clearfix">
        <asp:Label ID="lblEmail" CssClass="contactLabel" AssociatedControlID="txtEmail" Text="Email" runat="server"/>
        <span class="contactInput">
            <asp:TextBox ID="txtEmail" runat="server" TextMode="SingleLine" />
        </span>
        <asp:RegularExpressionValidator ID="valEmailFormat" ControlToValidate="txtEmail"  CssClass="formError" ErrorMessage="Invalid Email" Display="Dynamic" runat="server" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="formError" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Please Check" />
    </li>

    <li class="contactItem clearfix">
        <asp:Label ID="lblSubject" CssClass="contactLabel" AssociatedControlID="txtSubject"  Text="Subject" runat="server"/>
        
        <span class="contactInput">
            <asp:TextBox ID="txtSubject" runat="server" TextMode="SingleLine" />
        </span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="formError" ControlToValidate="txtSubject" Display="Dynamic" ErrorMessage="Please Check" />
    </li>
    <li class="contactItem clearfix">
        <asp:Label ID="lblQuestion" CssClass="contactLabel" AssociatedControlID="txtQuestion" Text="Question" runat="server"/>
        <span class="contactInput">
        <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine"  />
        </span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" CssClass="formError" ControlToValidate="txtQuestion" Display="Dynamic" ErrorMessage="Please Check" />
    </li>
    <li class="contactItem clearfix">
        <span class="contactLabel"></span>
        <asp:Button ID="btnSubmit" Text="Send" runat="server" />
    <%--<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph"/>--%>
    </li>
    
</ul>

</asp:Panel>

<asp:Panel ID="pnlMessageSent" Visible="false" runat="server">
    <p>Your message has been sent!</p>
</asp:Panel>

<asp:Panel ID="pnlMessageError" Visible="false" runat="server">
    <p>Your message has not been sent.</p>
</asp:Panel>

</asp:Content>

